package cn.ncist.health_service_provider.dao;

import cn.ncist.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    Order findOrderByMemberId(Integer memberId);

//    @MapKey("id")
    Map findById4Detail(Integer id);

    //不加@MapKey：{orderType=微信预约, name=陈海锋, setmealName=新生入学套餐, orderDate=2022-09-03}
    //加@MapKey：{null={orderType=微信预约, name=陈海锋, setmealName=新生入学套餐, orderDate=2022-09-03}}


}
